package com.demo1;import lombok.Data;import org.springframework.beans.factory.config.ConfigurableBeanFactory;import org.springframework.context.annotation.Scope;import org.springframework.stereotype.Controller;@Controller //注入Student@Data //自动生成get，set，toString...等方法// @Scope("prototype") 简单方法public class Student {    public int age;    public String name;    public int uid;    public Student()    {        age = 17;        name = "张三";        uid = 1;    }}